package com.qfedu.dtboot.controller;

import com.qfedu.dtboot.entity.ScheduleJobLog;
import com.qfedu.dtboot.service.ScheduleJobLogService;
import com.qfedu.dtboot.util.DataGridResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 定时任务日志(ScheduleJobLog)表控制层
 *
 * @author ykx
 * @since 2022-09-27 13:04:17
 */
@RestController
@RequestMapping("schedule/joblog")
public class ScheduleJobLogController {
    /**
     * 服务对象
     */
    @Resource
    private ScheduleJobLogService scheduleJobLogService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ScheduleJobLog selectOne(Long id) {
        return null;
    }

    @GetMapping("/list")
    public DataGridResult scheduleJobLogList(@RequestParam Map<String, Object> params){
        return scheduleJobLogService.queryJobLog(params);
    }

}
